Trò chơi đua xe động vật trong UNITY Engine
114.639 lượt xem;
- InterpolationPowIn.cs
- Interpolations /
- Bapk /
- Scripts /
- Assets /
- project /
1 using UnityEngine;
2 using System.Collections;
3
4 public class InterpolationPowIn : InterpolationPow{
5 // private int power;
6
7 public InterpolationPowIn(int power) : base(power)
8 {
9 //this.power = power;
10 }
11
12 public float apply(float a)
13 {
14 return Mathf.Pow(a, power);
15 }
16 }
2 using System.Collections;
3
4 public class InterpolationPowIn : InterpolationPow{
5 // private int power;
6
7 public InterpolationPowIn(int power) : base(power)
8 {
9 //this.power = power;
10 }
11
12 public float apply(float a)
13 {
14 return Mathf.Pow(a, power);
15 }
16 }
private int power;
this.power = power;